package com.iooiee;

import com.iooiee.config.MainConfig;
import com.iooiee.service.IndexService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @Author: Yanggc
 * DateTime: 2020-05-25
 */
public class MainStart {
	public static void main(String[] args) {
		//初始化Spring容器
		AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(MainConfig.class);
//		IndexService bean = ctx.getBean(IndexService.class);
//		System.out.println(bean);
		System.out.println(ctx.getBean("userService"));
	}
}
